import request from '@/utils/request'

// 查询成果转化申请列表
export function listTransformation(query) {
  return request({
    url: '/project/lystransformation/list',
    method: 'get',
    params: query
  })
}

// 查询成果转化申请详细
export function getTransformation(id) {
  return request({
    url: '/project/lystransformation/' + id,
    method: 'get'
  })
}

// 新增成果转化申请
export function addTransformation(data) {
  return request({
    url: '/project/lystransformation',
    method: 'post',
    data: data
  })
}

// 修改成果转化申请
export function updateTransformation(data) {
  return request({
    url: '/project/lystransformation',
    method: 'put',
    data: data
  })
}

// 删除成果转化申请
export function delTransformation(id) {
  return request({
    url: '/project/lystransformation/' + id,
    method: 'delete'
  })
}

//审核
export function getshenhe(data) {
  return request({
    url: '/project/lystransformation/getshenhe',
    method: 'put',
    data: data
  })
}
  // 修改成果转化申请
  export function updateTransformation1(data) {
    return request({
      url: '/project/lystransformation/a',
      method: 'put',
      data: data
    })

}

